'use strict';
exports.main = (event, context) => {
	//event为客户端上传的参数
	const db = uniCloud.database();
	const getImgs = db.collection('opendb-news-favorite').where({
		user: event.user
	}).get();
	//返回数据给客户端
	return getImgs
};
